<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="${pageContext.request.contextPath }/resources/css/style.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%
request.setCharacterEncoding( "UTF-8" );
response.setCharacterEncoding( "UTF-8" );
response.setContentType( "text/html; charset=UTF-8" );
%>


	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
	<script type="text/javascript">
		window.onload = function() {
			$("tr > td").css("text-align", "center");
		};
	</script>

<title>꽁알 Administrator</title>
</head>
<body>
<h2 align="center">게임 상세 보기</h2>
	<table class="list" align="center" cellpadding="5" cellspacing="0" style="text-align:center;">
		<tr>
			<td width="120" class="table_titleHeight">등록번호</td>
			<td width="240">${resultClass.no }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">등록날짜</td>
			<td><fmt:formatDate value="${resultClass.regdate }" pattern="yy-MM-dd"/></td>
		</tr>
		<tr>
			<td class="table_titleHeight">게임명</td>
			<td>${resultClass.name }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">꽁게임</td>
			<td>
				<c:if test="${resultClass.g_ggong == true }">O</c:if>
				<c:if test="${resultClass.g_ggong == false }">X</c:if>
			</td>
		</tr>
		<tr>
			<td class="table_titleHeight">꽁돈게임</td>
			<td>
				<c:if test="${resultClass.g_ggongdon == true }">O</c:if>
				<c:if test="${resultClass.g_ggongdon == false }">X</c:if>
			</td>
		</tr>
		<tr>
			<td class="table_titleHeight">타임게임</td>
			<td>
				<c:if test="${resultClass.g_time == true }">O</c:if>
				<c:if test="${resultClass.g_time == false }">X</c:if>
			</td>
		</tr>
		<tr>
			<td class="table_titleHeight">스페셜게임</td>
			<td>
				<c:if test="${resultClass.g_special == true }">O</c:if>
				<c:if test="${resultClass.g_special == false }">X</c:if>
			</td>
		</tr>
		<tr>
			<td class="table_titleHeight">상태</td>
			<td>
				<c:if test="${resultClass.status == 'idle' }">대기</c:if>
				<c:if test="${resultClass.status == 'start' }">서비스</c:if>
				<c:if test="${resultClass.status == 'stop' }">정지</c:if>
			</td>
		</tr>
		<tr>
			<td class="table_titleHeight">가능 미션</td>
			<td>${resultClass.mission }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">미션 가이드라인</td>
			<td>${resultClass.m_detail }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">게임설명</td>
			<td>${resultClass.info }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">게임종류</td>
			<td>${resultClass.genre }</td>
		</tr>
		<tr>
			<td class="table_titleHeight">제공할 꽁</td>
			<td>점수의 ${resultClass.offerggong } %</td>
		</tr>
	</table>
	
	<br/>
	
	<!-- 이미지 -->
	<table class="list" style="width:500px;" cellspacing="0" cellpadding="0" align="center">
		<tr style="height:110px;">
			<td width="25%"><img src="resources/images/uploadFiles/${resultClass.imgmain_savname }" style="width:100px;height:90px;"/></td>
			<td width="25%"><img src="resources/images/uploadFiles/${resultClass.imgdetail1_savname }" style="width:100px;height:90px;"/></td>
			<td width="25%"><img src="resources/images/uploadFiles/${resultClass.imgdetail2_savname }" style="width:100px;height:90px;"/></td>
			<td width="25%"><img src="resources/images/uploadFiles/${resultClass.imgdetail3_savname }" style="width:100px;height:90px;"/></td>
		</tr>
		<tr>
			<td>메인이미지</td>
			<td>상세이미지1</td>
			<td>상세이미지2</td>
			<td>상세이미지3</td>
		</tr>
	</table>
	
	<br/>
	
	<table align="center" width="360" style="text-align:center;">
		<tr>
			<td width="50%"><input type="button" value="수정하기" style="width:100px;" onclick="javascript:location.href='./modifyGamesForm.ga?no=${resultClass.no}'"/></td>
			<td width="50%"><input type="button" value="닫기" style="width:100px;" onclick="self.close()" /></td>
		</tr>
	</table>
</body>
</html>